package com.ubxtech.i18n.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Victor.Xiao
 * @since 2022-11-17 15:48
 **/
@Data
@ConfigurationProperties(prefix = CustomI18nProperties.PREFIX)
public class CustomI18nProperties {
    public static final String PREFIX = "ubxtech.i18n";

    /** 要解析的语言列表,例如zh_CN,en_US,ko_KR,可以只有zh,en */
    private List<String> language = new ArrayList<>();

    /** 名字中要拼接的值,比如appName-i18n-zh_CN.properties */
    private String suffixName = "i18n" ;

    private boolean enabled = true;
}
